Optimal. Leaf size=178 \[ -\frac{c \sqrt{a^2+2 a b x^2+b^2 x^4} (b c-4 a d) \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{8 d^{3/2} \left (a+b x^2\right )}+\frac{b x \sqrt{a^2+2 a b x^2+b^2 x^4} \left (c+d x^2\right )^{3/2}}{4 d \left (a+b x^2\right )}-\frac{x \sqrt{a^2+2 a b x^2+b^2 x^4} \sqrt{c+d x^2} (b c-4 a d)}{8 d \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0762214, antiderivative size = 178, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.147, Rules used = {1148, 388, 195, 217, 206} \[ -\frac{c \sqrt{a^2+2 a b x^2+b^2 x^4} (b c-4 a d) \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{8 d^{3/2} \left (a+b x^2\right )}+\frac{b x \sqrt{a^2+2 a b x^2+b^2 x^4} \left (c+d x^2\right )^{3/2}}{4 d \left (a+b x^2\right )}-\frac{x \sqrt{a^2+2 a b x^2+b^2 x^4} \sqrt{c+d x^2} (b c-4 a d)}{8 d \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1148
Rule 388
Rule 195
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4} \, dx &=\frac{\sqrt{a^2+2 a b x^2+b^2 x^4} \int \left (a b+b^2 x^2\right ) \sqrt{c+d x^2} \, dx}{a b+b^2 x^2}\\ &=\frac{b x \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{4 d \left (a+b x^2\right )}-\frac{\left (b (b c-4 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \int \sqrt{c+d x^2} \, dx}{4 d \left (a b+b^2 x^2\right )}\\ &=-\frac{(b c-4 a d) x \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{4 d \left (a+b x^2\right )}-\frac{\left (b c (b c-4 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \int \frac{1}{\sqrt{c+d x^2}} \, dx}{8 d \left (a b+b^2 x^2\right )}\\ &=-\frac{(b c-4 a d) x \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{4 d \left (a+b x^2\right )}-\frac{\left (b c (b c-4 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \operatorname{Subst}\left (\int \frac{1}{1-d x^2} \, dx,x,\frac{x}{\sqrt{c+d x^2}}\right )}{8 d \left (a b+b^2 x^2\right )}\\ &=-\frac{(b c-4 a d) x \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{4 d \left (a+b x^2\right )}-\frac{c (b c-4 a d) \sqrt{a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{8 d^{3/2} \left (a+b x^2\right )}\\ \end{align*}
Mathematica [A] time = 0.111615, size = 121, normalized size = 0.68 \[ \frac{\sqrt{\left (a+b x^2\right )^2} \sqrt{c+d x^2} \left (\sqrt{d} x \sqrt{\frac{d x^2}{c}+1} \left (4 a d+b \left (c+2 d x^2\right )\right )-\sqrt{c} (b c-4 a d) \sinh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )\right )}{8 d^{3/2} \left (a+b x^2\right ) \sqrt{\frac{d x^2}{c}+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 119, normalized size = 0.7 \begin{align*}{\frac{1}{8\,b{x}^{2}+8\,a}\sqrt{ \left ( b{x}^{2}+a \right ) ^{2}} \left ( 2\,\sqrt{d} \left ( d{x}^{2}+c \right ) ^{3/2}xb+4\,{d}^{3/2}\sqrt{d{x}^{2}+c}xa-\sqrt{d}\sqrt{d{x}^{2}+c}xbc+4\,\ln \left ( \sqrt{d}x+\sqrt{d{x}^{2}+c} \right ) acd-\ln \left ( \sqrt{d}x+\sqrt{d{x}^{2}+c} \right ) b{c}^{2} \right ){d}^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{d x^{2} + c} \sqrt{{\left (b x^{2} + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82027, size = 370, normalized size = 2.08 \begin{align*} \left [-\frac{{\left (b c^{2} - 4 \, a c d\right )} \sqrt{d} \log \left (-2 \, d x^{2} - 2 \, \sqrt{d x^{2} + c} \sqrt{d} x - c\right ) - 2 \,{\left (2 \, b d^{2} x^{3} +{\left (b c d + 4 \, a d^{2}\right )} x\right )} \sqrt{d x^{2} + c}}{16 \, d^{2}}, \frac{{\left (b c^{2} - 4 \, a c d\right )} \sqrt{-d} \arctan \left (\frac{\sqrt{-d} x}{\sqrt{d x^{2} + c}}\right ) +{\left (2 \, b d^{2} x^{3} +{\left (b c d + 4 \, a d^{2}\right )} x\right )} \sqrt{d x^{2} + c}}{8 \, d^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{c + d x^{2}} \sqrt{\left (a + b x^{2}\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1184, size = 147, normalized size = 0.83 \begin{align*} \frac{1}{8} \,{\left (2 \, b x^{2} \mathrm{sgn}\left (b x^{2} + a\right ) + \frac{b c d \mathrm{sgn}\left (b x^{2} + a\right ) + 4 \, a d^{2} \mathrm{sgn}\left (b x^{2} + a\right )}{d^{2}}\right )} \sqrt{d x^{2} + c} x + \frac{{\left (b c^{2} \mathrm{sgn}\left (b x^{2} + a\right ) - 4 \, a c d \mathrm{sgn}\left (b x^{2} + a\right )\right )} \log \left ({\left | -\sqrt{d} x + \sqrt{d x^{2} + c} \right |}\right )}{8 \, d^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]